{:W('Template/top')}
<div class="wrapper clearfix content" style="position: relative;border: 1px solid #ddd">
    {:W('Template/left')}
    <div class="rightbox pull-right">
        <div class="ur-here">您当前的位置：<a href="#">账户余额管理</a>&gt;账户变更记录</div>
        <div class="cTitle2">账户变更记录</div>
        <div class="main-search">
              <div class="top clearfix">
                <form method="get" action="{:U('Forum/details',array('id' => I('get.id'), 'oid' => I('get.oid')))}" class="form-inline">
                    <div class="form-group ml">
                        <label>时间：</label>
                        <input type="text" class="form-control ui-datepicker Wdate" name="start_time" placeholder="开始日期"
                               value="{$startTime}" id="d4322" onclick="WdatePicker({el: $dp.$('d12')})"
                               style="width:80%">
                    </div>
                    <span class="end">到</span>

                    <div class="form-group">
                        <label class="sr-only"></label>
                        <input type="text" class="form-control ui-datepicker Wdate" name="end_time" placeholder="结束日期"
                               value="{$endTime}" id="d4322" onclick="WdatePicker({el: $dp.$('d12')})">
                    </div>
                    <button type="submit" class="btn btn-warning">查询</button>
                </form>
            </div>
            <p></p>
              <form method="post" action="{:U('GetApplyExcel/getServiceChargeExcel')}">
                  <input type="hidden" name="start_time" value="{$startTime}">
                <input type="hidden" name="end_time" value="{$endTime}">
                <input type="submit" class="btn btn-success" value="导出机票服务费Excel">
            </form>
        </div>
        <form method="post" action="">
            <input type="hidden" id="code" value="{$Think.session.checkApplyCode}">
            <input id="chkState" type="hidden" value="{:U('Credit/index')}"/>
            <table class="cTable table-hover" width="100%">
                <tr>
                    <th width='8%'>编号</th>
                    <th width='8%'>顾问</th>
                    <th width='8%'>订单号</th>
                    <th width='15%'>用途</th>
                    <th width='10%'>金额</th>
                    <th width='10%'>余额</th>
                    <th width='10%'>备注</th>
                    <th width='10%'>操作时间</th>
                </tr>
                <volist name='info' id='v'>
                    <tr>
                        <td>{$v.id}</td>
                        <td>{$v.agency_name}</td>
                        <td>{$v.object_id}</td>
                        <td>{$v.action}</td>
                        <td id="money-right" class='text-c5'><dfn>&yen;{$v.amount|GetYuan}</dfn></td>
                        <td id="money-right" class="text-c1">
                            <dfn>&yen;{$v.balance|GetYuan}</dfn>
                        </td>
                        <td class="text-c5">
                            <if condition="$vo['memo'] != ''">
                                {$vo.memo}
                                <else/>
                                无
                            </if>
                        </td>
                        <td>{$v.create_time}</td>
                    </tr>
                </volist>
            </table>
        </form>
        <notempty name="info">
            <div class="pagebox">
                {$page}
            </div>
        </notempty>
    </div>
</div>

{:W('Template/bottom')}
<script src="__PUBLIC__/js/credit.js"></script>
</body>
</html>